package com.bobo.web.provider.config;

import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;

/**
 * yangbo
 * 2019-11-20
 * basketball-web
 **/
public class MyRoutingDataSource extends AbstractRoutingDataSource {
    @Override
    protected Object determineCurrentLookupKey() {
        return DBContextHolder.get();
    }
}
